package com.sgj.springcloud.service;

import com.sgj.springcloud.entities.CommonResult;
import com.sgj.springcloud.entities.Payment;
import com.sgj.springcloud.service.impl.PaymentServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 沈国纪
 * @date 2021/6/5 14:08
 */
@FeignClient(value = "nacos-payment-provider", fallback = PaymentServiceImpl.class)
public interface PaymentService {

	@GetMapping(value = "/paymentSQL/{id}")
	CommonResult<Payment> paymentSQL(@PathVariable("id")Long id);
}